<template>
  <div>
    <h2>Child组件</h2>
    <button @click="handle">累加App中的count</button>
  </div>
</template>

<script>
export default {
  name: "Child",
  methods: {
    handle() {
      //this.$emit():可以触发自定义事件
      this.$emit("changeCount", 2);
    }
  },
};
</script>

<style></style>
